import axios from 'axios'

// let base = 'http://consumer.bestproperty.com.mm'
// let base = 'http://bestproperty.com.mm'
// let base = 'api'
// let base = 'http://developer.dlintech.com'
// let base = 'https://shopgogo.dlintech.com'

// 国栋本地ip
// let base = 'http://10.7.17.19:8083'

// 王英本地ip
// let base = 'http://10.7.100.104:8084'
// let base = 'http://10.7.21.68:8084'
// let base = 'http://10.7.19.14:8084'


import {base} from './zxy_api'

// 搜索User接口
export const searchUserList = params => {
    return axios.get(`${base}/app/user/queryUser?`, {params})
}
// user follow
export const followUser = params => {
    return axios.post(`${base}/app/follow/follow`, params)
}
//user unfollow
export const unFollowUser = params => {
    return axios.post(`${base}/app/follow/cancel-follow`, params)
}

//compare phone 接口
export const searchPhone = params => {
    return axios.get(`${base}/app/phone/queryPhone?`, {params})
}
//phone detial
export const getPhoneDetail = params => {
    return axios.get(`${base}/app/phone/detail?`, {params})
}
//compare price
export const comparePrice = params => {
    return axios.get(`${base}/app/goods/compare_phone_price?`, {params})
}
//房产发布的api
// new Agent Form 提交时 提交主图
export const uploadAgentPhotos = (params, config) => { return axios.post(`${base}/manage/uploadfile/beforehand/photo`, params, config) }
// new Agent Form 提交时 提交表单信息
export const uploadAgentInfo = (params, config) => { return axios.post(`${base}/manage/transaction`, params, config) }
// new Agent Form 提交时 用户基本信息提交后 上传photos
export const uploadAgentFormPhotos = (params, config) => { return axios.post(`${base}/manage/transaction/photos`, params, config) }
//Agent 编辑
export const initAgent = (params) => { return axios.get(`${base}/manage/transaction/` + params) }
export const updateAgentInfo = (params, config) => { return axios.post(`${base}/manage/transaction/update`, params, config) }


